<?php $this->widget('zii.widgets.grid.CGridView', array(
		'id'=>'player-grid',
		'dataProvider'=>$dataProvider,
		'filter'=>new User(),
		'columns'=>array(
		'id',
		'username',				
		'email',
	
				array(
			'class'=>'CButtonColumn',
		'template'=>'{agregar}',
						'buttons'=>array
(
		'agregar' => array
		(		
				'title'=>'"$data->id"',
				'label'=>'agregar',
				'options'=>array('title'=>'"$data->id"', 'id'=>'"$row"', 'class'=>'btn btn-info',  'data-loading-text'=>"Loading..."),
				//'imageUrl'=>Yii::app()->request->baseUrl.'/images/ok.png',
				'url'=>'Yii::app()->createUrl("empresa/updateUser",array("id_empresa"=>'.$model->ID_EMPRESA.',"id"=>$data->id))',
				'click'=>'function(e) {var $this=$(this); $this.button("loading");}',
		),
		
),
		),
	),
)); ?>
